import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Paihang from '../views/Paihang.vue'
import Music from '../views/Music.vue'
import New from '../views/New.vue'
import Singer from '../views/Singer.vue'
import Zhubo from '../views/Zhubo.vue'
import MyMusic from '../views/MyMusic.vue'
import Guanzhu from '../views/Guanzhu.vue'
import Shop from '../views/Shop.vue'
import Star from '../views/Star.vue'
import Get from '../views/Get.vue'
import Store from '../store'

Vue.use(VueRouter)
Vue.use(Store)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/paihang',
    name: 'Paihang',
    component: Paihang,
  },
  {
    path: '/music',
    name: 'Music',
    component: Music
  },
  {
    path: '/new',
    name: 'New',
    component: New
  },
  {
    path: '/singer',
    name: 'Singer',
    component: Singer
  },
  {
    path: '/zhubo',
    name: 'Zhubo',
    component: Zhubo
  },
  {
    path: '/mymusic',
    name: 'MyMusic',
    component: MyMusic
  },
  {
    path: '/guanzhu',
    name: 'Guanzhu',
    component: Guanzhu
  },
  {
    path: '/star',
    name: 'Star',
    component: Star
  },
  {
    path: '/shop',
    name: 'Shop',
    component: Shop
  },
  {
    path: '/get',
    name: 'Get',
    component: Get
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
